package design.simdi.code.final_paper.core.daos;

import it.openutils.dao.hibernate.HibernateDAO;
import it.openutils.dao.hibernate.HibernateDAOImpl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import design.simdi.code.final_paper.core.entities.UserRole;

/**
 * 
 * @author Marius Dumitriu - (Jun 2, 2010 - 11:55:50 PM)
 * 
 */
public interface UserRoleDao extends HibernateDAO<UserRole, Long> {
	@Repository(value = "userGroupDao")
	public static class UserGroupDaoImpl extends HibernateDAOImpl<UserRole, Long> implements UserRoleDao {

		@Autowired
		public UserGroupDaoImpl(SessionFactory factory) {
			setSessionFactory(factory);
			setReferenceClass(UserRole.class);
		}

	}
}
